package com.javastar.common.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * token枚举
 *
 * @author zxx
 * @date 2023/7/23
 */
@Getter
@AllArgsConstructor
public enum TokenEnum {
    USER_TOKEN("userToken", 7 * 24 * 60 * 60 * 1000L, "asioASDd219^&(*@()jsad@*@*&@-novel-user"),
    ADMIN_TOKEN("adminToken", 24 * 60 * 60 * 1000L, "^&(*@()jsad@*@*&@asioASDd219-novel-admin")
    ;

    private String tokenKey;
    /**
     * 过期时间，单位ms
     */
    private long expireTime;
    /**
     * token密钥
     */
    private String secretKey;
}
